package org.ocean.online.web.setting;

import java.util.List;
import java.util.Map;

import net.sf.json.JSONObject;

import org.apache.wicket.markup.html.form.HiddenField;
import org.apache.wicket.model.Model;
import org.ocean.hibernate.BaseHibernateDao;
import org.ocean.online.wicket.NeedLoginPage;

public class AccountManager extends NeedLoginPage{
	private static final long serialVersionUID = 50392498210321669L;

	public AccountManager(){
		BaseHibernateDao dao = new BaseHibernateDao();
		List<Map> users = dao.find("from user",new Object[]{});
		HiddenField<String> tableData = new HiddenField<String>("tableData",new Model<String>());
		JSONObject jobj = new JSONObject();
		jobj.put("rows", users);
		tableData.setDefaultModelObject(jobj.toString());
		add(tableData);
	}
	
	
}
